import request from '@/utils/request'

/**
 * 获取一定时间范围之内的订单总数
 * @param {*} params {start,end...}
 * @returns Promise
 */
export const getOrderCountAPI = (start, end) => request({
  url: '/api/order-service/report/orderCount',
  params: {
    start,
    end
  }
})

/**
 * 获取一定时间范围之内的收入
 * @param {*} params {start,end...}
 * @returns Promise
 */
export const getOrderAmountAPI = (start, end) => request({
  url: '/api/order-service/report/orderAmount',
  params: {
    start,
    end
  }
})
